<?php
$this->breadcrumbs = array(
    'Settings',
    'Site settings'
);
?>
<div class="box">
    <header>
        <h5><i class="icon"></i>Site settings</h5>
    </header>
    <div class="body">
        <form method="post">
            <div class="control-group">
                <label class="control-label">Site name</label>
                <div class="controls">
                    <input type="text" name="name" value="<?php echo isset($settings['name']) ? $settings['name'] : '' ?>" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Site logo</label>
                <div class="controls">
                    <?php
                    //set image
                    $this->widget('ext.elFinder.ServerFileInput', array(
                        'name' => 'logo',
                        'value' => isset($settings['logo']) ? $settings['logo'] : '',
                        'connectorRoute' => '/filemanager/connector',
                            )
                    );
                    ?>
                    <p class="help-block">Click browse then select file or paste link from external</p>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">Site sologan</label>
                <div class="controls">
                    <input type="text" name="sologan" value="<?php echo isset($settings['sologan']) ? $settings['sologan'] : '' ?>" />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">Site description</label>
                <div class="controls">
                    <textarea name="description"><?php echo isset($settings['description']) ? $settings['description'] : '' ?></textarea>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">Admin email</label>
                <div class="controls">
                    <input type="text" name="admin_email" value="<?php echo isset($settings['admin_email']) ? $settings['admin_email'] : '' ?>" />
                </div>
            </div>
    </div>

    <div class="form-actions">
        <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Submit')); ?>
    </div>
</form>
</div>
</div>